# x86_64 工具链配置
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR x86_64)

# 指定编译器（使用系统默认的x86_64编译器）
set(CMAKE_C_COMPILER gcc)
set(CMAKE_CXX_COMPILER g++)

# 编译器标志
set(CMAKE_C_FLAGS "-march=x86-64-v2 -mtune=generic")
set(CMAKE_CXX_FLAGS "-march=x86-64-v2 -mtune=generic")

# 搜索路径设置
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)